<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../../static/layui/css/layui.css"/>
    <style type="text/css">

    </style>
</head>
<body style="padding: 10px;box-sizing: border-box;">

<table id="demo" lay-filter="test"></table>

<script src="../../../static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script>
    layui.use(['table', 'layer'], function () {
        var table = layui.table;
        var layer = layui.layer;
        $ = layui.jquery;

        //第一个实例
        table.render({
            elem: '#demo'
            , toolbar: '#toolbarDemo'
            , height: 'full-40'
            , url: 'base' //数据接口
            , method: 'post'
            , page: true //开启分页
            , cols: [